package week04.window02;

import week04.window02.abs.IconWindow;
import week04.window02.abs.TransientWindow;
import week04.window02.imp.MacWindowImp;
import week04.window02.imp.PMWindowImp;
import week04.window02.imp.XWindowImp;

/**
 * Created by zhangxiaokun on 2018/2/26.
 */
public class TestWindow {
    public static void main(String[] args) {
        //x window 的图标窗
        IconWindow iconWindow = new IconWindow(new XWindowImp());

        iconWindow.drawText();
        iconWindow.drawBorder();

        // x window 的弹窗
        TransientWindow transientWindow = new TransientWindow(new XWindowImp());
        transientWindow.drawCloseBox();
        transientWindow.drawText();

        // pm window 的图标窗
        IconWindow iconWindow2 = new IconWindow(new PMWindowImp());
        iconWindow2.drawBorder();

        // pm window 的弹窗
        TransientWindow transientWindow2 = new TransientWindow(new PMWindowImp());
        transientWindow2.drawCloseBox();

        //mac 图标窗
        IconWindow iconWindow3 = new IconWindow(new MacWindowImp());
        iconWindow3.drawBorder();

        //mac 弹窗
        TransientWindow transientWindow3 = new TransientWindow(new MacWindowImp());
        transientWindow3.drawCloseBox();

    }
}
